﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace NetMicro.Applications.Request
{
    /// <summary>
    /// 请求参数
    /// </summary>
    public abstract class RequestBase : IRequest
    {
        /// <summary>
        /// 参数验证
        /// </summary>
        /// <param name="validationContext"></param>
        /// <returns></returns>
        public virtual IEnumerable<ValidationResult> Validate(ValidationContext validationContext) { yield break; }
    }
}
